<?php

defined('SYSPATH') or die('No direct script access.');

class Controller_Admin_Report extends Controller_Admin {

    //put your code here

    public function before() {
        parent::before();
        $this->setActive_menu_left('report');
        $this->setSub_menu(View::factory('admin/report/sub-menu'));
    }
    public function action_list(){
        $a_js = array('google' => array('<script type="text/javascript" src="https://www.google.com/jsapi">
        </script>'), 'jquery.easy-pie-chart', 'jquery.sparkline', 'tiny-scrollbar');
        $this->add_js($a_js);
        $this->add_css(array('charts-graphs'));

        $this->template->content = View::factory("admin/report/list");
    }
    
    public function action_list2(){
        $a_js = array('google' => array('<script type="text/javascript" src="https://www.google.com/jsapi">
        </script>'), 'jquery.easy-pie-chart', 'jquery.sparkline', 'tiny-scrollbar');
        $this->add_js($a_js);
        $this->add_css(array('charts-graphs'));

        $this->template->content = View::factory("admin/report/list_1");
    }
    
    public function action_list3(){
        $a_js = array('google' => array('<script type="text/javascript" src="https://www.google.com/jsapi">
        </script>'), 'jquery.easy-pie-chart', 'jquery.sparkline', 'tiny-scrollbar');
        $this->add_js($a_js);
        $this->add_css(array('charts-graphs'));

        $this->template->content = View::factory("admin/report/list_2");
    }
    
   public function action_list4(){
        $a_js = array('google' => array('<script type="text/javascript" src="https://www.google.com/jsapi">
        </script>'), 'jquery.easy-pie-chart', 'jquery.sparkline', 'tiny-scrollbar');
        $this->add_js($a_js);
        $this->add_css(array('charts-graphs'));

        $this->template->content = View::factory("admin/report/list_3");
    }
    
    public function action_chart(){
        $a_js = array('google' => array('<script type="text/javascript" src="https://www.google.com/jsapi">
        </script>'), 'jquery.easy-pie-chart', 'jquery.sparkline', 'tiny-scrollbar');
        $this->add_js($a_js);
        $this->add_css(array('charts-graphs'));

        $this->template->content = View::factory("admin/report/chart");
    }
    

}
